<%@ page import="auctionhaus.Customer"%>


<div
	class="fieldcontain ${hasErrors(bean: customerInstance, field: 'emailAddress', 'error')} required">
	<label for="emailAddress"> <g:message
			code="customer.emailAddress.label" default="Email Address" /> <span
		class="required-indicator">*</span>
	</label>
	<g:field type="email" name="emailAddress" required=""
		value="${customerInstance?.emailAddress}" />
</div>


<div
	class="fieldcontain ${hasErrors(bean: customerInstance, field: 'password', 'error')} required">
	<label for="password"> <g:message
			code="customer.password.label" default="Password" /> <span
		class="required-indicator">*</span>
	</label>
	<g:field type="password" name="password" maxlength="8" required=""
		value="${customerInstance?.password}" />
</div>


<!--div class="fieldcontain ${hasErrors(bean: customerInstance, field: 'bids', 'error')} ">
	<label for="bids">
		<g:message code="customer.bids.label" default="Bids" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${customerInstance?.bids?}" var="b">
    <li><g:link controller="bid" action="show" id="${b.id}">${b?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="bid" action="create" params="['customer.id': customerInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'bid.label', default: 'Bid')])}</g:link>
</li>
</ul>

</div-->

<!--div class="fieldcontain ${hasErrors(bean: customerInstance, field: 'listings', 'error')} ">
	<label for="listings">
		<g:message code="customer.listings.label" default="Listings" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${customerInstance?.listings?}" var="l">
    <li><g:link controller="listing" action="show" id="${l.id}">${l?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="listing" action="create" params="['customer.id': customerInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'listing.label', default: 'Listing')])}</g:link>
</li>
</ul>

</div-->

<!--<div class="fieldcontain ${hasErrors(bean: customerInstance, field: 'winnings', 'error')} ">
	<label for="winnings">
		<g:message code="customer.winnings.label" default="Winnings" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${customerInstance?.winnings?}" var="w">
    <li><g:link controller="listing" action="show" id="${w.id}">${w?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="listing" action="create" params="['customer.id': customerInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'listing.label', default: 'Listing')])}</g:link>
</li>
</ul-->

</div>

